//
//  AllDefine.swift
//  MyEcho
//
//  Created by longlong on 16/1/25.
//  Copyright © 2016年 LongLong. All rights reserved.
//


class AllDefine: NSObject {
    class func homePageURLWith(page:NSInteger,baseUrl:NSString) -> NSString{
        return baseUrl.stringByAppendingFormat("%ld",page);
    }
    
    class func channePageURLWith(page:NSInteger,isHot:Bool) -> NSString{
        if isHot{
            return "http://echosystem.kibey.com/channel/get?page=".stringByAppendingFormat("%ld&with_sound=0&order=hot",page);

        }else{
            return "http://echosystem.kibey.com/channel/get?page=".stringByAppendingFormat("%ld&with_sound=0&order=new",page);
        }
    }
    
    class func musicDetailURLWith(soundID:NSString) -> NSString{
        return "".stringByAppendingFormat("http://echosystem.kibey.com/sound/info?sound_id=%@",soundID);
    }
    class func commentURLWith(soundID:NSString,page:NSInteger) -> NSString{
        return "".stringByAppendingFormat("http://echosystem.kibey.com/bullet/get?type=1&rand=1&page=%d&limit=5&sound_id=%@",page,soundID);
    }

}
